package cn.edu.tju.elm.controller.dto;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Pattern;

public class UpdateDeliveryAddressDto {

    @NotBlank(message = "联系人姓名不能为空")
    private String contactName;

//    @NotNull(message = "联系人性别不能为空")
    private Integer contactSex;

    @NotBlank(message = "联系电话不能为空")
//    @Pattern(regexp = "^1[3-9]\\d{9}$", message = "联系电话格式不正确")
    private String contactTel;

    @NotBlank(message = "详细地址不能为空")
    private String address;

    // 构造函数、getter和setter
    public UpdateDeliveryAddressDto() {
    }

    public String getContactName() {
        return contactName;
    }

    public void setContactName(String contactName) {
        this.contactName = contactName;
    }

    public Integer getContactSex() {
        return contactSex;
    }

    public void setContactSex(Integer contactSex) {
        this.contactSex = contactSex;
    }

    public String getContactTel() {
        return contactTel;
    }

    public void setContactTel(String contactTel) {
        this.contactTel = contactTel;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }
}